package com.zxk.blog.service.impl;

import com.github.xiaolyuh.annotation.CachePut;
import com.github.xiaolyuh.annotation.Cacheable;
import com.github.xiaolyuh.annotation.FirstCache;
import com.github.xiaolyuh.annotation.SecondaryCache;
import com.zxk.blog.service.BlogTestService;
import org.springframework.stereotype.Service;

/**
 * @Description TODO
 * @Author zxk
 * @DATE 2022/11/24 14:24
 * @Version 1.0
 **/
@Service
public class BlogTestServiceImpl implements BlogTestService {
    @Override
    @Cacheable(value = "layer:cache",key = "#key",firstCache = @FirstCache,secondaryCache = @SecondaryCache)
    public String getmsg(String key) {
        System.out.println("逻辑体");
        return key;
    }
}
